package com.library.service;

import com.library.dto.BookDTO;
import com.library.entity.Book;
import java.util.List;

public interface BookService {
    List<Book> getAllBooks();
    
    Book getBookById(Long id);
    
    Book getBookByIsbn(String isbn);
    
    List<Book> searchBooks(String keyword);
    
    Book addBook(BookDTO bookDTO);
    
    Book updateBook(Long id, BookDTO bookDTO);
    
    void deleteBook(Long id);
    
    boolean borrowBook(Long bookId, String borrowerName, String borrowerContact);
    
    boolean returnBook(Long borrowRecordId);
}
